let identity = function (data) {
  if (data.identity == 0) {
    localStorage.setItem('Identity', "Manager");
  }
  else if (data.identity == 1) {
    localStorage.setItem('Identity', "Organization");
  }
  else {
    localStorage.setItem('Identity', "Voluntary");
  }
  let value = JSON.stringify(data.person)
  localStorage.setItem('Person', value)
}
export default identity;